<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .parentWrap{
      width: 200px;
      text-align: center;
    }
    .menuGroup{
      border: 1px solid #999;
      background-color: #e0ecff;
    }
    .groupTitle{
      display: block;
      height: 20px;
      line-height: 20px;
      font-size: 16px;
      border-bottom: 1px solid #ccc;
      cursor: pointer;
    }
    .menuGroup > div{
      height: 200px;
      background-color: #fff;
      display: none;
    }
    .parentWrap div.current{
      display: block;
    }
  </style>
</head>
<body>
  <ul class="parentWrap">
    <li class="menuGroup">
      <span class="groupTitle">标题1</span>
      <div>我是弹出来的div1</div>
    </li>
    <li class="menuGroup">
      <span class="groupTitle">标题2</span>
      <div>我是弹出来的div2</div>
    </li>
    <li class="menuGroup">
      <span class="groupTitle">标题3</span>
      <div>我是弹出来的div3</div>
    </li>
    <li class="menuGroup">
      <span class="groupTitle">标题4</span>
      <div>我是弹出来的div4</div>
    </li>
  </ul>
  <script src="../../jquery-1.12.4.min.js"></script>
  <script>
    //方法一
    $('li').click(function(){
      $(this).children('div').show().parent().siblings().children('div').hide();
    });
    //方法二
    $('span').click(function(){
      $(this).next().addClass('current').parent().siblings().children('div').removeClass('current');
    })
  </script>
</body>
</html>